package com.shensi.appCollect.utils.exception;

public class EndingException extends Exception {

    private Integer code = -1;

    public EndingException() {
    }

    public EndingException(String message) {
        super(message);
    }
    public EndingException(Integer retCode, String message) {
        super(message);
        this.code = retCode;
    }

    public Integer getCode() {
        return code;
    }
    public Boolean handleCodeFlag(){
        return code == -1;
    }
}
